<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script src="js/time.js?"></script>
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <?php
        	//print_r($row); 
        ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr>
                    <td><?= translate('C_SELECT_AREA_TEXT') ?>:</td>
                    <td><?= $area_host ?></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_ITEMTYPEID') ?>:</td>
                    <td><input type="text" name="row[itemtypeid] ?>" id="itemtypeid" size="25" class="autocomplete" table="type_object" value="<?= $row['itemtypeid'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_PROFFESSION') ?>:</td>
                    <td><?= $proffessionid ?></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_PRISE')?>:</td>
                    <td><input type="text" name="row[prise] ?>" id="prise" size="25" value="<?= $row['prise'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_HOTPRISE')?>:</td>
                    <td><input type="text" name="row[hotprise] ?>" id="hotprise" size="25" value="<?= $row['hotprise'] ?>"/><font color='red'><img src="images/!.gif">&nbsp;注：非热销默认填0</font></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_SCOREPRISE')?>:</td>
                    <td><input type="text" name="row[scoreprise] ?>" id="scoreprise" size="25" value="<?= $row['scoreprise'] ?>"/><font color='red'><img src="images/!.gif">&nbsp;注：非积分默认填0</font></td>
                </tr>
                 <tr>
                    <td><?= translate('MALL_STOREGOODS_MOUNT')?>:</td>
                    <td><input type="text" name="row[mount] ?>" id="mount" size="25" value="<?= $row['mount'] ?>"/><font color='red'><img src="images/!.gif">&nbsp;注：无限制填-1</font></td>
                </tr>
                 <tr>
                    <td><?= translate('MALL_STOREGOODS_GLOBALMOUNT')?>:</td>
                    <td><input type="text" name="row[globalmount] ?>" id="globalmount" size="25" value="<?= $row['globalmount'] ?>"/><font color='red'><img src="images/!.gif">&nbsp;注：无限制填-1</font></td>
                </tr>
                 <tr>
                    <td><?= translate('MALL_STOREGOODS_BUYLIMIT')?>:</td>
                    <td><input type="text" name="row[buylimit] ?>" id="buylimit" size="25" value="<?= $row['buylimit'] ?>"/></td>
                </tr> 
                <tr>
                    <td><?= translate('MALL_STOREGOODS_STARTTIME')?>:</td>
                    <td><input type="text" name="row[starttime] ?>" id="starttime" size="25"  onclick="SelectDate(this,'yyyy-MM-dd hh:mm',0,10)" value="<?= $row['starttime'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_DEADTIME')?>:</td>
                    <td><input type="text" name="row[deadtime] ?>" id="deadtime" size="25"  onclick="SelectDate(this,'yyyy-MM-dd hh:mm',0,10)" value="<?= $row['deadtime'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_NAME')?>:</td>
                    <td><input type="text" name="row[name] ?>" id="name" size="25" value="<?= $row['name'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_HOTLIMIT')?>:</td>
                    <td>
                        <input type="radio" name="row[hotlimit] ?>" id="hotlimit" size="25" value="1" <?= checkchecked(1, $row['hotlimit']) ?> />是&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="row[hotlimit] ?>" id="hotlimit" size="25" value="0" <?= checkchecked(0, $row['hotlimit']) ?> />否
                    </td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_ISREDUCE')?>:</td>
                    <td>
                        <input type="radio" name="row[isreduce] ?>" id="isreduce" size="25" value="1" <?= checkchecked(true, $row['isreduce']) ?> />是&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="row[isreduce] ?>" id="isreduce" size="25" value="0" <?= checkchecked(false, $row['isreduce']) ?> />否
                    </td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_ISDOWN')?>:</td>
                    <td>
                        <input type="radio" name="row[isdown] ?>" id="isdown" size="25" value="0" <?= checkchecked(0, $row['isdown']) ?> />上架&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="row[isdown] ?>" id="isdown" size="25" value="1" <?= checkchecked(1, $row['isdown']) ?> />下架
                    </td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_ICON')?>:</td>
                    <td><input type="text" name="row[icon] ?>" id="icon" size="25" value="<?= $row['icon'] ?>"/></td>
                </tr>
                <tr>
                    <td><?= translate('MALL_STOREGOODS_CORNERICON')?>:</td>
                    <td><input type="text" name="row[cornericon] ?>" id="cornericon" size="25" value="<?= $row['cornericon'] ?>"/></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit" /> <input type="reset" value="<?= translate('RESET') ?>" id="reset" /></td>
                </tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#area_host").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#itemtypeid").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#proffessionid").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#prise").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#hotprise").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#scoreprise").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#mount").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#globalmount").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#buylimit").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#deadtime").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#name").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#hotlimit").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
               // $("#isreduce").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#isdown").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#icon").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                //$("#cornericon").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
            });
        </script>
    </body>
</html>